Hello Experts,
i am working on backup script, i need to send backup log to my email account via mialx command. here my problem is, my backup log has some special characters, so mail command is sending the backup log as a attachment.
here is my mail command
cat /opt/couchbase/scripts/logs/cdb_bakcup_201602031704.log|mailx -s "CERT:slcdb10:Couchbase Backup status on "
pavan27@domain.com
Code:
backup log content :
[####################] 100.0% (7303/estimated 7303 msgs)^[[A
bucket: beer-sample, msgs transferred...
: total | last | per sec
byte : 2541549 | 2541549 | 963817.4
[####################] 100.0% (1/estimated 1 msgs)^[[A
bucket: cb01, msgs transferred...
: total | last | per sec
byte : 2541644 | 2541644 | 3362092.1
.
bucket: cb02, msgs transferred...
: total | last | per sec
byte : 2541644 | 2541644 | 6012039.2
.
bucket: cb03, msgs transferred...
: total | last | per sec
byte : 2541644 | 2541644 | 6170418.0
.
bucket: default, msgs transferred...
: total | last | per sec
byte : 2541644 | 2541644 | 6512344.3
done
special character i need to eliminate is "^[[A" , from mail attachment i did see the special character "^[[A" showing as "<-[A".
please help me to resolve the issue .
Thank you,
Pavan